package cn.home.sysmanagement.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.home.common.annotation.Excel;
import cn.home.common.core.domain.BaseEntity;

/**
 * 咨讯管理对象 home_article
 * 
 * @author homedoctor
 * @date 2025-04-09
 */
public class HomeArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章编号 */
    private Long id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String articletitle;

    /** 文章图片 */
    @Excel(name = "文章图片")
    private String articleimg;

    /** 文章类型（外键articletype） */
    @Excel(name = "文章类型", readConverterExp = "外=键articletype")
    private Long articletype;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String articlecontext;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date relasetime;

    /** 收藏量 */
    @Excel(name = "收藏量")
    private Long favorite;

    /** 分享量 */
    @Excel(name = "分享量")
    private Long shares;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setArticletitle(String articletitle) 
    {
        this.articletitle = articletitle;
    }

    public String getArticletitle() 
    {
        return articletitle;
    }

    public void setArticleimg(String articleimg) 
    {
        this.articleimg = articleimg;
    }

    public String getArticleimg() 
    {
        return articleimg;
    }

    public void setArticletype(Long articletype) 
    {
        this.articletype = articletype;
    }

    public Long getArticletype() 
    {
        return articletype;
    }

    public void setArticlecontext(String articlecontext) 
    {
        this.articlecontext = articlecontext;
    }

    public String getArticlecontext() 
    {
        return articlecontext;
    }

    public void setRelasetime(Date relasetime) 
    {
        this.relasetime = relasetime;
    }

    public Date getRelasetime() 
    {
        return relasetime;
    }

    public void setFavorite(Long favorite) 
    {
        this.favorite = favorite;
    }

    public Long getFavorite() 
    {
        return favorite;
    }

    public void setShares(Long shares) 
    {
        this.shares = shares;
    }

    public Long getShares() 
    {
        return shares;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("articletitle", getArticletitle())
            .append("articleimg", getArticleimg())
            .append("articletype", getArticletype())
            .append("articlecontext", getArticlecontext())
            .append("relasetime", getRelasetime())
            .append("favorite", getFavorite())
            .append("shares", getShares())
            .toString();
    }
}
